<?php

/*
 * Dingo Api Routes
 */




$api = app('Dingo\Api\Routing\Router');//dinggo api不太懂  创建一个api
$api->version('v1', function ($api) {//版本控制


    $api->group(['namespace' => 'App\Api\V1\Controllers'], function($api) {//分组
         //include __DIR__.'/AuthClerk/routes.php';
        // include __DIR__.'/AuthVendor/routes.php';
        // include __DIR__.'/Tag/routes.php';
         //include __DIR__.'/Notify/routes.php';
        // include __DIR__.'/SMS/routes.php';
        $api->group(['middleware' => 'jwt.auth'], function($api)
        {
           // include __DIR__.'/Role/routes.php';
           // include __DIR__.'/Clerk/routes.php';
            //include __DIR__.'/Vendor/routes.php';
           // include __DIR__.'/Task/routes.php';
           // include __DIR__.'/Permission/routes.php';
        });

    });
});

//host="47.92.90.21",

/**
 * @SWG\Swagger(
 *     schemes={"http"},
 *     host="localhost:8080",
 *     basePath="/api",
 *     @SWG\Info(
 *         version="1.0.0",
 *         title="守卫侠",
 *         description="守卫侠app",
 *         termsOfService="http://swagger.io/terms/",
 *         @SWG\Contact(
 *             email="apiteam@swagger.io"
 *         ),
 *         @SWG\License(
 *             name="Apache 2.0",
 *             url="http://www.apache.org/licenses/LICENSE-2.0.html"
 *         )
 *     ),
 *     @SWG\ExternalDocumentation(
 *         description="Find out more about Swagger",
 *         url="http://swagger.io"
 *     )
 * )
 */


/**
 * @SWG\SecurityScheme(
 *   securityDefinition="api_key",
 *   type="apiKey",
 *   in="header",
 *   name="api_key"
 * )
 */

/**
 * @SWG\SecurityScheme(
 *   securityDefinition="petstore_auth",
 *   type="oauth2",
 *   authorizationUrl="http://petstore.swagger.io/oauth/dialog",
 *   flow="implicit",
 *   scopes={
 *     "read:pets": "read your pets",
 *     "write:pets": "modify pets in your account"
 *   }
 * )
 */